package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.Event;

/**
 * 生产排期事件枚举
 */
public enum ProductionScheduleEventEnum implements Event {
    
    PUBLISH("PUBLISH", "发布排期", "PRODUCTION_SCHEDULE"),
    ADJUST("ADJUST", "调整排期", "PRODUCTION_SCHEDULE"),
    REPUBLISH("REPUBLISH", "重新发布", "PRODUCTION_SCHEDULE");
    
    private final String code;
    private final String description;
    private final String eventType;
    
    ProductionScheduleEventEnum(String code, String description, String eventType) {
        this.code = code;
        this.description = description;
        this.eventType = eventType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getEventType() {
        return eventType;
    }
}